package com.gwtcx.sample.serendipity.client.view;

import com.gwtcx.client.smartgwt.view.ErrorPageView;
import com.gwtcx.client.smartgwt.view.handlers.ErrorPageUiHandlers;
import com.gwtcx.sample.serendipity.client.presenter.SerendipityErrorPagePresenter;

public class SerendipityErrorPageView extends ErrorPageView<ErrorPageUiHandlers> implements
	SerendipityErrorPagePresenter.MyView {	

	private final String html = "<div>\n"
	+ "<table align=\"center\">\n"
	+ "  <tr>\n" + "<td>&nbsp;</td>\n" + "</tr>\n"
	+ "  <tr>\n" + "<td>&nbsp;</td>\n" + "</tr>\n"
	+ "  <tr>\n" + "<td>&nbsp;</td>\n" + "</tr>\n"
	+ "  <tr>\n"    
	+ "    <td style=\"font-weight:bold;\">An error has occurred.</td>\n"
	+ "  </tr>\n"
	+ "  <tr>\n" + "<td>&nbsp;</td>\n" + "</tr>\n"
	+ "  <tr>\n" + "<td>Try this action again. If the problem continues,</td>\n" + "</tr>\n"
	+ "  <tr>\n" + "<td>check the Serendipity forums for a solution or</td>\n" + "</tr>\n"
	+ "  <tr>\n" + "<td>contact your Serendipity administrator.</td>\n" + "</tr>\n"
	+ "  <tr>\n" + "<td>&nbsp;</td>\n" + "</tr>\n"    
	+ "  <tr>\n"
	+ "    <td id=\"okButtonContainer\"></td>\n"  
	+ "  </tr>\n"     
	+ "</table>\n"
	+ "</div>\n";

	public SerendipityErrorPageView() {
		super();    
	}

	@Override
	protected String getPanelHtml() {
		return html;
	}
}